/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dataentry;

import java.util.Stack;

/**
 *
 * @author i.capurro
 */
public class UniqueQ extends Question {
    
    private String answer = null;
    
    public UniqueQ(String name) {
        super(name);
    }
    
    @Override
    public void pushAnswer(String val) {
        answer = val;
    }
    
    @Override
    public void popAnswer() {
        answer = null;
    }
    
    @Override
    public String getAnswer() {
        return answer;
    }
    
    @Override
    public int getLength() {
        return 1;
    }
    
    @Override
    public Stack getAnswers() {
        Stack s = new Stack();
        s.push(answer);
        return s;
    }
    
    @Override
    public void emptyAnswers() {
        answer = null;
    }
    
    @Override
    public boolean hasValue(String val) {
        return false;
    }
    
}
